import { defineComponent } from'vue'
import styles from '../styles/index.module.scss'
interface propsType {
    type?:String,
    round?:false,
}
export default defineComponent({
    name: 'dbButton',
    setup(props:propsType,{slots,attrs}) {
        const {type,round} = props
        return ()=> (
            <div {...attrs} class={`${type?type:styles.primary} ${round? styles.round:''}`} >{slots.default && slots.default()}</div>
        )
    }
})
